package utilsPc.listas;

import java.util.ArrayList;
import java.util.HashMap;

import cultivameCore.tienda.Negociable;
import cultivameCore.utils.Inventario;
import cultivameCore.utils.ListaString;

public class InventarioPc implements Inventario {
	
	HashMap<String,Negociable> almacen=new HashMap<String,Negociable>();

	public void put(String key, Negociable obj) {
		// TODO Auto-generated method stub
		almacen.put(key, obj);
	}

	public Negociable get(String nom) {
		// TODO Auto-generated method stub
		return almacen.get(nom);
	}

	public ListaString keySet() {
		// TODO Auto-generated method stub
		ArrayList<String> aux= new ArrayList<String>(almacen.keySet());
		ListaStringPc lpc=new ListaStringPc();
		for(int i=0;i<aux.size();i++){
			lpc.add(aux.get(i));
		}
		return (ListaString) lpc;
	}

}
